package demo1.factory;

import demo1.product.pad.Pad;
import demo1.product.pad.iPad;
import demo1.product.phone.Phone;
import demo1.product.phone.iPhone;

/**
 * 苹果零售店
 * @author ZhouWeiBo
 * @create 2022/6/6
 */
public class AppleStore extends Shop{
    @Override
    public Phone sellPhone() {
        System.out.println("感谢您来到 [苹果零售店] 购买 [iPhone] !");
        return new iPhone();
    }

    @Override
    public Pad sellPad() {
        System.out.println("感谢您来到 [苹果零售店] 购买 [iPad] !");
        return new iPad();
    }
}
